/****************************************************************************
**
** ServerList.h
**
** Copyright (C) August 2014 Hotride
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
*****************************************************************************
*/
//---------------------------------------------------------------------------
#ifndef ServerListH
#define ServerListH
//--------------------------------------------------------------------------
class TServerList
{
private:
	int m_Count;
	int m_SelectedServer;

	PWORD m_ID;
	string *m_Name;
public:
	TServerList();
	~TServerList();

	SETGET(int, SelectedServer)

	void SetCount(int val);
	void SetName(int pos, WORD ID, string name);

	int GetCount() const {return m_Count;}
	WORD GetID(int pos) const;
	string GetName(int pos) const;
};
//---------------------------------------------------------------------------
#endif